<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      你好{{c.m.n}}
      <br />
      <input type="text" v-model="c.m.n" />
      <ul>
        <li>A</li>
        <li>B</li>
        <li>C</li>
      </ul>
    </div>
    <button onclick="add()">按我加1</button>
    <script src="/xuni/bundle.js"></script>
    <script>
      let vm = new Vue({
        el: '#app',
        data: {
          a: 10,
          b: '亚雷吗',
          c: {
            m: {
              n: 7,
            },
          },
        },
        watch: {
          a() {
            console.log('a的值改变了')
          },
        },
      })

      function add() {
        vm.c.m.n++
      }
    </script>
  </body>
</html>
